// -----------------------------
// Author: 		Dhaenens Gert 
// Creation: 	9/24/2014 3:21:35 PM				
// -----------------------------

#ifndef _LuaVariable_inl
#define _LuaVariable_inl

#include "LuaDataType.h"

namespace ObjectLua
{

	template<typename T>
	T LuaVariable::get() const
	{
		LuaStackGuard stackGuard(m_lpLua);
		m_Ref.push();

		return LuaDataType<T>::get(m_lpLua, -1);
	}

}

#endif